<template>

    <!-- 分页 -->
    <div class="pagination">
        <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="page"
                :page-sizes="[10, 20, 30, 50, 100, 200]"
                :page-size="limit"
                :total="total"
                layout="total, sizes, prev, pager, next, jumper">
        </el-pagination>
    </div>

</template>

<script>
export default {
    name: 'TablePagination',
    props: {
        page: Number,
        limit: Number,
        total: Number
    },

    data() {
        return {

        }
    },

    created() {
    },

    mounted() {
        this.$nextTick(() => {
        })
    },

    methods: {
        handleSizeChange(val) {
            this.$emit('handleSizeChange', val)
        },
        handleCurrentChange(val) {
            this.$emit('handleCurrentChange', val)
        }

    }

}
</script>

<style lang="scss" scoped>

</style>
